package org.jeecg.modules.xl.order.vo;

import java.util.List;
import lombok.Data;
import org.jeecg.modules.xl.order.entity.XlCustomerOrderDetail;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: xl_customer_order
 * @Author: jeecg-boot
 * @Date:   2024-10-20
 * @Version: V1.0
 */
@Data
@ApiModel(value="xl_customer_ordePage对象", description="xl_customer_order")
public class XlCustomerOrdePage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**订单单号*/
	@Excel(name = "订单单号", width = 15)
	@ApiModelProperty(value = "订单单号")
    private java.lang.String orderCode;
	/**门店编号*/
	@Excel(name = "门店编号", width = 15)
	@ApiModelProperty(value = "门店编号")
    private java.lang.String storeCode;
	@Excel(name = "门店名称", width = 15)
	private java.lang.String storeName;
	/**门店类型*/
	private String  storeType;
	/**门店渠道类型*/
	private String customerTypeCode;
	/**门店渠道类型*/
	private String customerType;
	/**收件人*/
	@Excel(name = "收件人", width = 15)
	@ApiModelProperty(value = "收件人")
    private java.lang.String receiptName;
	/**收件人手机号*/
	@Excel(name = "收件人手机号", width = 15)
	@ApiModelProperty(value = "收件人手机号")
    private java.lang.String receiptPhone;
	/**收件地址省市区*/
	@ApiModelProperty(value = "收件地址省市区")
    @Excel(name = "收件地址省市区", width = 15,exportConvert=true,importConvert = true )
    private java.lang.String receiptZone;
	private String statementUrl;
	private Double paymentAmount;
	private java.lang.String province;
	private java.lang.String city;
	private java.lang.String district;
    public String convertisReceiptZone() {
        return SpringContextUtils.getBean(ProvinceCityArea.class).getText(receiptZone);
    }

    public void convertsetReceiptZone(String text) {
        this.receiptZone = SpringContextUtils.getBean(ProvinceCityArea.class).getCode(text);
    }
	/**收件详细地址*/
	@Excel(name = "收件详细地址", width = 15)
	@ApiModelProperty(value = "收件详细地址")
    private java.lang.String receiptAddress;

	/**审批状态(0:待审核，1:审核通过，2:审核不通过)*/
	@Excel(name = "审批状态(0:待审核，1:审核通过，2:审核不通过)", width = 15, dicCode = "audit_state")
	@Dict(dicCode = "audit_state")
	@ApiModelProperty(value = "审批状态(0:待审核，1:审核通过，2:审核不通过)")
	private String auditState;
	/**审批人*/
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "审批人")
	private String auditBy;
	/**审批时间*/
	@Excel(name = "审批时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "审批时间")
	private Date auditTime;

	/**支付状态(0：支付中，1:已支付)*/
	@Excel(name = "支付状态(0：支付中，1:已支付)", width = 15, dicCode = "payment_state")
	@Dict(dicCode = "payment_state")
	@ApiModelProperty(value = "支付状态(0：支付中，1:已支付)")
	private String paymentState;
	/**付款人*/
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "付款人")
	private String paymentBy;
	/**付款时间*/
	@Excel(name = "付款时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "付款时间")
	private Date paymentTime;
	/**付款凭证图片*/
	@Excel(name = "付款凭证图片", type = 2 ,width = 40 , height = 20,imageType = 1)
	@ApiModelProperty(value = "付款凭证图片")
	private String paymentImage;


	//**发货状态(0:未发货，1:已发货)*//*
	@Excel(name = "发货状态(0:未发货，1:已发货)", width = 15)
	@Dict(dicCode = "shipment_state")
	@ApiModelProperty(value = "发货状态(0:未发货，1:已发货)")
	private String shipmentState;
	//**发货人*//*
	@ApiModelProperty(value = "发货人")
	private String shipmentBy;
	//**发货时间*//*
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "发货时间")
	private Date shipmentTime;

	/**发货方式(1:城配，2:快递)*/
	@Excel(name = "发货方式", width = 15, dicCode = "delivery_way")
	@Dict(dicCode = "delivery_way")
	@ApiModelProperty(value = "发货方式(1:城配，2:快递)")
	private String deliveryWay;
	/**快递类型(1:三通一达，2:顺丰，3:京东，4:极兔，5:邮政，6:德邦)*/
	@Excel(name = "快递类型", width = 15, dicCode = "delivery_type")
	@Dict(dicCode = "delivery_type")
	@ApiModelProperty(value = "快递类型(1:三通一达，2:顺丰，3:京东，4:极兔，5:邮政，6:德邦)")
	private String deliveryType;

	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;

	@ExcelCollection(name="订单明细")
	@ApiModelProperty(value = "订单明细")
	private List<XlCustomerOrderDetail> xlCustomerOrderDetailList;

}
